package com.find.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.find.domain.User;

import java.util.Map;

/**
 * @author kai
 */
public interface UserService extends IService<User> {

    boolean findUser(String name);

    String updateByName(Map<String,Object> user, String name);

    boolean saveUser(User user);

    boolean delete(Integer id);

    User login(String username,String password);

    boolean logout(String username);

    boolean modify(User book);

    IPage<User> getPage(int currentPage, int pageSize);

    boolean logInStat(String name);

    User getByName(String name);

}
